package cn.edu.scau.cmi.luotiansheng_chapter10;

import java.util.*;

public class Fenxi {
	
	public static double getTotalScore(String s) {
		Scanner scanner=new Scanner(s);
		scanner.useDelimiter("[^0123456789]+");
		double totalScore=0;
		while(scanner.hasNext()) {
			try {
				double score=scanner.nextDouble();
				totalScore=totalScore+score;
			}catch(InputMismatchException e) {
				String t=scanner.next();
			}
		}
		return totalScore;
	}
	
	
	
}
